package org.elanfox.intellicommunity.common.ienum;


import org.elanfox.intellicommunity.common.ienum.base.CodeDescCommonEnum;

/**
 * 设备枚举
 *
 * @author allan
 * @date 2018-09-10
 */
public interface EquipmentEnum {
    enum TypeEnum implements CodeDescCommonEnum {
        TYPE_0(0, "室外定位基站"),
        TYPE_1(1, "室内融通基站"),
        TYPE_2(2, "室外定位器"),
        TYPE_3(3, "室内定位器");

        private Integer code;
        private String desc;

        TypeEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 电压状态枚举
     */
    enum VoltageStatusEnum implements CodeDescCommonEnum {
        STATUS_0(0, "电压正常"),
        STATUS_1(1, "低电压"),
        ;

        private Integer code;
        private String desc;

        VoltageStatusEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}

